import Taro, { Component } from '@tarojs/taro'
import { View, Button, Text } from '@tarojs/components'
import { observer, inject } from '@tarojs/mobx'
import { AtIcon, AtInput } from 'taro-ui'
import './profitDetail.scss'


@inject('counterStore')
@observer
class ProfitDetail extends Component {

    config = {
        navigationBarTitleText: '收益明细',
        navigationBarTextStyle: 'black',
        navigationBarBackgroundColor: '#FFF',
    }
    constructor() {
        super(...arguments)
        this.state = {
            value: '',
            icon: require('../../img/profitRecord.png'),
        }
    }
    handleChange = (value) => {
        this.setState({
            value
        })
    }
    componentWillMount() {
        console.log('componentWillMount----');
    }

    componentWillReact() {
        console.log('componentWillReact')
    }

    componentDidMount() { }

    componentWillUnmount() { }

    componentDidShow() { }

    componentDidHide() { }
    render() {
        const { counterStore: { counter } } = this.props
        const { icon } = this.state;
        return (
            <View className='profitDetail-page'>
                <View className="cell">
                    <View className="title">订单编号</View>
                    <View className="value">20198219321899012</View>
                </View>
                <View className="cell">
                    <View className="title">下单时间</View>
                    <View className="value">2019-06-13  15:15</View>
                </View>
                <View className="cell">
                    <View className="title">客户姓名</View>
                    <View className="value">王石元</View>
                </View>
                <View className="cell">
                    <View className="title">联系方式</View>
                    <View className="value">13913313037</View>
                </View>
                <View className="cell">
                    <View className="title">收货地址</View>
                    <View className="value">江苏省南京市江浦区珠江路悦景龙华小区5栋1单元302</View>
                </View>
                <View className="cell">
                    <View className="title">订单金额</View>
                    <View className="value">¥5600</View>
                </View>
                <View className="cell">
                    <View className="title bold">佣金</View>
                    <View className="value bold">¥500</View>
                </View>
            </View>
        )
    }
}

export default ProfitDetail
